package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bwie.poi.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2024/10/15 16:20
 */

@Data
@TableName(value = "tb_user")
public class TbUser implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer userId;

    @Excel(name = "登录账号")
    private String userName;
    private String userPass;

    @Excel(name = "手机号")
    private String userMobile;

    @Excel(name = "邮件")
    private String userMail;

    @Excel(name = "真实姓名")
    private String nickName;

    @Excel(name = "角色", readConverterExp = "1=管理员,2=商户,3=普通用户")
    private Integer userRole;

    @Excel(name = "身份证号")
    private String idCode;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    @Excel(name = "注册时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Integer userCheck;

    private Double userMoney;

    @TableField(exist = false)
    private String token;
}
